#include "AWrap.h"



namespace clojure_lang {

    AWrap::operator QString(){
        TypeCastException *tce = new TypeCastException;
        tce->from = QString(this->typeName());
        tce->to = QString("QString");
        throw tce;
    }

    AWrap::operator int(){
        TypeCastException *tce = new TypeCastException;
        tce->from = QString(this->typeName());
        tce->to = QString("int");
        throw tce;
    }

    AWrap::operator long(){
        TypeCastException *tce = new TypeCastException;
        tce->from = QString(this->typeName());
        tce->to = QString("long");
        throw tce;
    }

    AWrap::operator float(){
        TypeCastException *tce = new TypeCastException;
        tce->from = QString(this->typeName());
        tce->to = QString("float");
        throw tce;
    }

    AWrap::operator double(){
        TypeCastException *tce = new TypeCastException;
        tce->from = QString(this->typeName());
        tce->to = QString("double");
        throw tce;
    }

}
